Skip to main content

Bundler for JavaScript

· 2 min read

WebPack

WebPack

  • For JS, CSS, HTML
  • Popular
  • Slow
  • Complex configuration
  • Written in JavaScript

RsPack

RsPack

  • WebPack compatible API
  • Written in Rust
  • Created by ByteDance

Rollup

Rollup

  • For JS
  • Faster than WebPack
  • Support import ES6, CommonJS, ...
  • Support output format: AMD, CommonJS, ES, IIFE, UMD, SystemJS
  • Written in JavaScript

ESBuild

ESBuild

  • For JS, JSX
  • Extremely fast
  • Written in Go

Bun

Bun

  • Bun is all-in-one toolkit, include:
    • JavaScript / TypeScript runtime
    • Package manager
    • Bundler
    • Test runner
  • For TS, JS, JSX
  • Extremely fast
  • Written in Zig
  • Use JavaScriptCore (WebKit) as JS engine

Vite

Vite

  • Recommended
  • For TS, JS, CSS, HTML
  • Faster
  • Vite use Rollup for vite build
  • Vite use ESBuild for vite dev

Farm

Farm

  • Written in Rust
  • Vite compatible

Mako

Mako

  • Written in Rust
  • Used by Ant Group

Parcel

Parcel

  • For JS, CSS, HTML
  • Zero configuration
  • Slow
  • Written in JavaScript

Parcel 2

Parcel

  • Built on SWC (Rust based)
  • For JS, CSS, HTML
  • Zero configuration
  • Not stable
  • Written in JavaScript